package com.nq.activaity.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 用户签到表
 * @Author: jeecg-boot
 * @Date:   2024-11-06
 * @Version: V1.0
 */
@Data
@TableName("st_user_sign_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class StUserSignRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**签到记录ID*/
	@TableId(type = IdType.AUTO)
    private Integer id;
	/**用户ID*/
	@Excel(name = "用户ID", width = 15)
    private Integer userId;
	/**签到日期*/
	@Excel(name = "签到日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
    private Date signInDate;
	/**签到奖励积分*/
	@Excel(name = "签到奖励积分", width = 15)
    private Integer rewardPoints;
	/**签到奖励金额*/
	@Excel(name = "签到奖励金额", width = 15)
    private BigDecimal rewardMount;
	/**记录创建时间*/
    private Date createTime;
	/**记录更新时间*/
    private Date updateTime;
}
